//飞入效果
$(document).ready(function () {
    window.onload = function(){
        var aLi= $("#tdjl-list-box>li");

        aLi.eq(0).children("a").find(".jl-pic").addClass("jl-pic-xx");
        aLi.eq(0).children("a").find(".jl-xx").addClass("jl-pic-xx");

        $(window).scroll(function () {
            for(var i=0;i<aLi.length;i++){
                aLi[i].className="on"+(i+1);
                var a = aLi.eq(i).offset().top;
                if (a >= $(window).scrollTop() && a < ($(window).scrollTop() + $(window).height())) {

                    aLi.eq(i).children("a").find(".jl-pic").addClass("jl-pic-xx")
                    aLi.eq(i).children("a").find(".jl-xx").addClass("jl-pic-xx")
                }
            }
        });
    };
});